jtagprobe: jtagprobe.o picprog_serial.o ihex.o
	gcc -o jtagprobe jtagprobe.o picprog_serial.o ihex.o

jtagprobe.o: jtagprobe.c picprog_serial.h ihex.h
	gcc -c jtagprobe.c 

picprog_serial.o: picprog_serial.c picprog_serial.h
	gcc -c picprog_serial.c 

ihex.o: ihex.c ihex.h
	gcc -c ihex.c 

install: jtagprobe
	cp jtagprobe /usr/local/bin/jtagprobe

clean:
	rm -f jtagprobe *.o *.hex *.elf
        

